var app = getApp();

Page({
  /**
   * 页面的初始数据
   */
  data: {
    isBoss:false,
    type:'',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options)
    var that = this;
    var type=options.type;
    if(parseInt(type)==0){
      that.setData({
        isBoss:true,
      })
    }
    that.setData({
      type:type,
    })
  },


  /**
   * 跳转设置积分比率
   */
  gotoSetPointRatio:function(){
    wx.navigateTo({
      url: '../setPointRatio/setPointRatio',
    })
  },
  /**
   * 帮助充值
   */
  gotoHelpRecharge:function(){
    wx.navigateTo({
      url: '../helpRecharge/helpRecharge',
    })
  },
  /**
   * 员工管理
   */
  gotoManageMember:function(){
    var type = this.data.type;
    wx.navigateTo({
      url: '../employeeList/employeeList?type='+type,
    })
  },
  // 增加员工
  goToAddEmployee:function(){
    var type = this.data.type;
    wx.navigateTo({
      url: '../addEmployee/addEmployee?type='+type,
    })
  },
  // 查看会员
  goToVipList:function(){
    wx.navigateTo({
      url: '../vipList/vipList',
    })
  },
  goToRechargeAccount:function(){
    wx.navigateTo({
      url: '../rechargeAccount/rechargeAccount',
    })
  },
  /**
  * 生命周期函数--监听页面加载
  */
  changeSwitch: function (e) {
    var status = e.detail.value;
    wx.navigateTo({
      url: '../storeStatus/storeStatus'
    })
  },
})